package com.yang.service.impl;

import com.yang.entity.Deposit;
import com.yang.dao.DepositDao;
import com.yang.service.DepositService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 充值表(Deposit)表服务实现类
 *
 * @author yangdacheng
 * @since 2022-03-02 19:11:02
 */
@Service("depositService")
public class DepositServiceImpl implements DepositService {
    @Resource
    private DepositDao depositDao;

    @Override
    public Boolean insertDeposit(Deposit deposit) {
        return depositDao.insertDeposit(deposit);
    }

    @Override
    public Boolean updateDeposit(Deposit deposit) {
        return depositDao.updateDeposit(deposit);
    }

    @Override
    public Boolean deleteDeposit(String depID) {
        return depositDao.deleteDeposit(depID);
    }

    @Override
    public List<Deposit> queryAllDeposit(Integer isShow) {
        return depositDao.queryAllDeposit(isShow);
    }

    @Override
    public Deposit queryDepositByID(String depID) {
        return depositDao.queryDepositByID(depID);
    }
}